<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="../static/layui/css/layui.css">
    <link rel="stylesheet" href="../static/bootstrap-4.5.0-dist/css/bootstrap.css">
</head>
<body>
<div class="layui-fluid">
    <h1 class="text-center layui-bg-blue mb-3">注册</h1>
</div>
<div>
    <div class="container">
        <form class="layui-form w-50 mx-auto" id="form">
            <div class="layui-form-item my-5">
                <label for="A" class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                    <input type="text" id="A" class="layui-input" name="username">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="b" class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input type="text" id="b" class="layui-input" name="password">
                </div>
            </div>
            <div></div>
            <div class="layui-form-item mt-5">
                <div class="layui-input-block">
                    <button class="layui-btn" id="sub" type="button">注册</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
            <div class="layui-form-item">
                <div id="msg" class="mt-5 text-center text-danger"></div>
            </div>
        </form>
    </div>
</div>
<script src="../static/layui/layui.js"></script>
<script src="../static/bootstrap-4.5.0-dist/js/jquery-3.4.1.js"></script>
<script>
    $.post("/toRegister",$("#form").serialize(),function (data) {

    })
</script>
</body>
</html>